<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <meta http-equiv="X-UA-Compatible" content="ie=edge">
   <title>Document</title>
   <style>
      div{
         white-space: nowrap;
         overflow: hidden;
         font-size: 20px;
         height: 30;
         background-color: greenyellow;
         animation: o  3s steps(8) forwards;
      }
      @keyframes o {
         0%{
            width: 0;
         }
         100%{
           width: 160px;
        }
      }
        
   </style>
</head>
<body>
   <div>菠菜贱卖菠菜贱卖</div>

</body>
</html>